package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"news_db/controllers"
)

func init() {
	beego.Router("/create", &controllers.NewsController{}, "POST:Create")
	beego.Router("/list", &controllers.NewsController{}, "Get:List")
	beego.Router("/update", &controllers.NewsController{}, "POST:Update")
	beego.Router("/del", &controllers.NewsController{}, "POST:Del")
}
